/**
 * Copyright (c) 2018 湖南牛数 All rights reserved.
 *
 * https://www.dshubs.io
 *
 * 版权所有，侵权必究！
 */

package io.dshubs.feign;

import io.dshubs.commons.security.user.UserDetail;
import io.dshubs.commons.tools.constant.ServiceConstant;
import io.dshubs.commons.tools.utils.Result;
import io.dshubs.dto.SysDeptDTO;
import io.dshubs.feign.fallback.UserFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author tan
 */
@FeignClient(name = ServiceConstant.DSHUBS_ADMIN_SERVER, contextId = "SysFeignClient", fallbackFactory = UserFeignClientFallbackFactory.class)
public interface SysFeignClient {

    /**
     * 根据部门id获取部门
     * @param id id
     * @return SysDeptDTO
     */
    @GetMapping("sys/dept/{id}")
    Result<SysDeptDTO> get(@PathVariable("id") Long id);

    
}